<?
	if ($list->getLength() == 0)
	{
?>
				<tr>
					<td colspan=4>등록된 건수가 없습니다.</td>
				</tr>
<?
	}
	else
	{
		$max_code_display = 0;
		$now_disp = 0;
		while ($list->hasNext())
		{
			$row 			= & $list->next();
			
			$now_disp++;
			
			$code_seq		= $row->getNumber('CODE_SEQ');
			$code_code1		= $row->getString('CODE_CODE1');
			$code_code2		= $row->getString('CODE_CODE2');
			$code_name		= $row->getString('CODE_NAME');
			$code_display	= $row->getNumber('CODE_DISPLAY');
			
			if ( $code_display > $max_code_display ) {
				$max_code_display = $code_display;
			}
			
			if ( $level == 1 )
				$code_code = $code_code1;
			else
				$code_code = $code_code2;
?>
                <tr>
					<input type="hidden" id="now_disp" name="now_disp" value="<?echo $now_disp?>" />
					<input type="hidden" id="due_disp" name="due_disp" value="<?echo $now_disp?>" />
					<td><input type="checkbox" id="chkbxNo" name="chkbxNo" value="<?echo $code_seq?>" /></td>
                	<td><?echo $code_code ?></td>
                    <td><?echo $code_name ?></td>
					<td><span id="up_span<?echo $code_seq?>" name="up_span<?echo $code_seq?>" code_disp="<?echo $code_display?>" OnClick="MNG.fncRtnfunc('sort','minus','<?echo $code_seq ?>');" class="listUp"></span><span id="up_span<?echo $code_seq?>" name="dn_span<?echo $code_seq?>" code_disp="<?echo $code_display?>" OnClick="MNG.fncRtnfunc('sort','plus','<?echo $code_seq ?>');" class="listDown"></span></td>
                </tr>				
<?			}			?>
					 <input type="hidden" name="max_code_display" id="max_code_display" value="<?echo $max_code_display?>"/>
<?		}               ?>